package MySwing;

import javax.swing.JCheckBox;

@SuppressWarnings("serial")
public class JFormCheckBox extends JFormComponent {
	JCheckBox ch;
	public JFormCheckBox(String nombre,boolean checked)
	{
		ch = new JCheckBox();
		ch.setText(nombre);
		ch.setSelected(checked);
		addComponent();
	}
	@Override
	protected void addComponent() {
		this.add(ch);
	}
	public JCheckBox getCheckBox()
	{
		return ch;
	}

}
